package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhuanjiabiandongshenbaoQushiMapper;
import com.ruoyi.system.domain.ZhuanjiabiandongshenbaoQushi;
import com.ruoyi.system.service.IZhuanjiabiandongshenbaoQushiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 专家变动申报_去世Service业务层处理
 * 
 * @author dy
 * @date 2024-05-27
 */
@Service
public class ZhuanjiabiandongshenbaoQushiServiceImpl implements IZhuanjiabiandongshenbaoQushiService 
{
    @Autowired
    private ZhuanjiabiandongshenbaoQushiMapper zhuanjiabiandongshenbaoQushiMapper;

    /**
     * 查询专家变动申报_去世
     * 
     * @param shenbaoid 专家变动申报_去世主键
     * @return 专家变动申报_去世
     */
    @Override
    public ZhuanjiabiandongshenbaoQushi selectZhuanjiabiandongshenbaoQushiByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoQushiMapper.selectZhuanjiabiandongshenbaoQushiByShenbaoid(shenbaoid);
    }

    /**
     * 查询专家变动申报_去世列表
     * 
     * @param zhuanjiabiandongshenbaoQushi 专家变动申报_去世
     * @return 专家变动申报_去世
     */
    @Override
    public List<ZhuanjiabiandongshenbaoQushi> selectZhuanjiabiandongshenbaoQushiList(ZhuanjiabiandongshenbaoQushi zhuanjiabiandongshenbaoQushi)
    {
        return zhuanjiabiandongshenbaoQushiMapper.selectZhuanjiabiandongshenbaoQushiList(zhuanjiabiandongshenbaoQushi);
    }

    /**
     * 新增专家变动申报_去世
     * 
     * @param zhuanjiabiandongshenbaoQushi 专家变动申报_去世
     * @return 结果
     */
    @Override
    public int insertZhuanjiabiandongshenbaoQushi(ZhuanjiabiandongshenbaoQushi zhuanjiabiandongshenbaoQushi)
    {
        return zhuanjiabiandongshenbaoQushiMapper.insertZhuanjiabiandongshenbaoQushi(zhuanjiabiandongshenbaoQushi);
    }

    /**
     * 修改专家变动申报_去世
     * 
     * @param zhuanjiabiandongshenbaoQushi 专家变动申报_去世
     * @return 结果
     */
    @Override
    public int updateZhuanjiabiandongshenbaoQushi(ZhuanjiabiandongshenbaoQushi zhuanjiabiandongshenbaoQushi)
    {
        return zhuanjiabiandongshenbaoQushiMapper.updateZhuanjiabiandongshenbaoQushi(zhuanjiabiandongshenbaoQushi);
    }

    /**
     * 批量删除专家变动申报_去世
     * 
     * @param shenbaoids 需要删除的专家变动申报_去世主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoQushiByShenbaoids(String shenbaoids)
    {
        return zhuanjiabiandongshenbaoQushiMapper.deleteZhuanjiabiandongshenbaoQushiByShenbaoids(Convert.toStrArray(shenbaoids));
    }

    /**
     * 删除专家变动申报_去世信息
     * 
     * @param shenbaoid 专家变动申报_去世主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoQushiByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoQushiMapper.deleteZhuanjiabiandongshenbaoQushiByShenbaoid(shenbaoid);
    }
}
